import request from '@/utils/request'

// 查询上报列表
export function listReport(query) {
  return request({
    url: '/system/report/list',
    method: 'get',
    params: query
  })
}

// 查询上报详细
export function getReport(pkid) {
  return request({
    url: '/system/report/' + pkid,
    method: 'get'
  })
}

// 新增上报
export function addReport(data) {
  return request({
    url: '/system/report',
    method: 'post',
    data: data
  })
}

// 修改上报
export function updateReport(data) {
  return request({
    url: '/system/report',
    method: 'put',
    data: data
  })
}

// 删除上报
export function delReport(pkid) {
  return request({
    url: '/system/report/' + pkid,
    method: 'delete'
  })
}
  // 保存填报数据
  export function saveLuckySheet(data) {
    return request({
      url: '/system/report/saveLuckySheet',
      method: 'post',
      data: data
    })
  }
